<?php defined('SYSPATH') OR die('No direct access allowed.');

// Dies ist der Basis-Controller er Applikation. 
class Ajaxview_Controller extends Controller{
	  
	
	public function __construct()
	
	{ 	  
		parent::__construct();	
	} 
	
	public function index(){
		if($this->input->post('viewfile')!=""){
			$viewfile=$this->input->post('viewfile');
			$subview=new View($viewfile);
			echo $subview;
		}else{
			echo "no viewfile specified";
		}
	}
}
